package com.job.updateinfojob.service.impl;


import com.job.updateinfojob.entity.NetworkInfoEntity;
import com.job.updateinfojob.mapper.NetworkinfoMapper;
import com.job.updateinfojob.service.INetworkInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @Description
 * @Author Lx
 * @Date 2024/8/23 上午12:58
 **/
@Service
public class NetworkInfoServiceImpl implements INetworkInfoService {
    @Resource
    NetworkinfoMapper networkInfoMapper;

    @Override
    public int insert(List<NetworkInfoEntity> networkInfo) {
        int cnt=0;
        for (NetworkInfoEntity networkInfoEntity : networkInfo) {
            cnt+=networkInfoMapper.insert(networkInfoEntity);
        }
        return cnt;
    }

}
